package cn.tedu.spring.bean;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestUser {
    @Test
    public void beanAnnTest(){
        ApplicationContext context=new ClassPathXmlApplicationContext
                ("bean.xml");
        User user=context.getBean("user",User.class);
        System.out.println(user);
    }
}
